import request from '@/utils/request'

// 查询例题解析列表
export function listExampleSubjectAnalysis(query) {
  return request({
    url: '/receipt/exampleSubjectAnalysis/list',
    method: 'get',
    params: query
  })
}

// 查询例题解析详细
export function getExampleSubjectAnalysis(id) {
  return request({
    url: '/receipt/exampleSubjectAnalysis/' + id,
    method: 'get'
  })
}

// 查询例题解析详细
export function getExampleSubjectAnalysiss(ids) {
  return request({
    url: '/receipt/exampleSubjectAnalysis/' + ids,
    method: 'get'
  })
}
// 新增例题解析
export function addExampleSubjectAnalysis(data) {
  return request({
    url: '/receipt/exampleSubjectAnalysis',
    method: 'post',
    data: data
  })
}

// 修改例题解析
export function updateExampleSubjectAnalysis(data) {
  return request({
    url: '/receipt/exampleSubjectAnalysis',
    method: 'put',
    data: data
  })
}

// 删除例题解析
export function delExampleSubjectAnalysis(id) {
  return request({
    url: '/receipt/exampleSubjectAnalysis/' + id,
    method: 'delete'
  })
}

// 导出例题解析
export function exportExampleSubjectAnalysis(query) {
  return request({
    url: '/receipt/exampleSubjectAnalysis/export',
    method: 'get',
    params: query
  })
}

//获取例题树状结构
export function getTree(query) {
  return request({
    url: '/receipt/exampleSubjectAnalysis/getTreeList',
    method: 'get',
    params: query
  })
}
